<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich">
      <f:loadBundle basename="oo.messages" var="msgs"/>
  <body>
<f:view >
<h:form>
<!-- ok -->
<rich:panel >

	<center>
    <a4j:commandButton action="starszenowe1" id="dodajogloszenie1"  value="#{msgs.czolozakladkadodajogl}" title="dodaj" >
    <!-- <a4j:commandButton action="#{nawigacja.nawiguj}" id="dodajogloszenie1"  value="#{msgs.czolozakladkadodajogl}" title="dodaj" > -->
    <a4j:actionparam name="username" value="2" assignTo="#{dodawanie.nazwa}"/>
	   	<!-- <a4j:actionparam name="username" value="1" assignTo="#{nawigacja.username}"/> -->
    </a4j:commandButton>
	</center><br/>
	
	<h:panelGrid  columns="2" id="editGrid_">
				<f:facet name="header">Wyszukaj wg:</f:facet>
				
                <h:outputText value="Wojewodztwo :" id="og_1"/>
                <rich:comboBox selectFirstOnUpdate="false" defaultLabel="Wybierz wojewodztwo">
        			<!-- <f:selectItems value="#{dodawanie.lista}" /> -->
    			</rich:comboBox>
    			
                <h:outputText value="Miasto :" id="og_2"/>
                <rich:comboBox selectFirstOnUpdate="false" defaultLabel="Wybierz miasto">
        			<!-- <f:selectItems value="#{dodawanie.lista}" /> -->
    			</rich:comboBox>
    			
	</h:panelGrid><br/>

        <f:facet name="header"><h:outputText value="#{msgs.czolozakladka2}"/></f:facet>
         <rich:dataTable height="180px" width="300px" value="#{TaskListBean.dataList2}" 
         id="ogloszenia_starsze"
         var="dataItem" 
         rows="5" >
                 <rich:column>
                    <f:facet name="header">
                        <h:outputText value="#{msgs.ak}" />
                    </f:facet>
                    <!-- <a4j:commandLink  value="#{dataItem.tresc}">
                 		<f:setPropertyActionListener target="#{TaskListBean.idogloszenia}" value="#{dataItem.id}" />
                 		<rich:componentControl for="szczegolyogloszenia" operation="show" event="onclick" />
                 	</a4j:commandLink> -->
                 	
                      <!-- <h:outputLink value="#" id="link2" title="#{msgs.titlelink}">
                      <font size="+1" color="green">#{dataItem.tresc}</font>
        				<rich:componentControl for="panel" attachTo="link2" operation="show" event="onclick"/>
    				   </h:outputLink> -->
                </rich:column>
                <f:facet name="footer">
                    <rich:datascroller  for="ogloszenia_starsze" renderIfSinglePage="true" maxPages="3">
                    <f:facet name="first"><h:outputText value="#{msgs.tabelaogloszeniaaktualnelabelapierwsza}"/></f:facet>
          			<f:facet name="last"><h:outputText value="#{msgs.tabelaogloszeniaaktualnelabelaostatnia}"/></f:facet>  
                    </rich:datascroller>
                </f:facet>
            </rich:dataTable>
</rich:panel>
</h:form>
</f:view>
</body>
</html>

